-- GENERATED SPELL FOR [Makazradon] --


function spell0_21501(pUnit, Event) --@Cripple,n/a--
pUnit:FullCastSpellOnTarget(11443,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21501', 18000, 1)
end

function spell1_21501(pUnit, Event) --@Fel Cleave,n/a--
pUnit:FullCastSpellOnTarget(38742,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21501', 7250, 1)
end

function spell2_21501(pUnit, Event) --@Rain of Fire,n/a--
pUnit:FullCastSpellOnTarget(38741,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21501', 9000, 1)
end

function Sorts_21501(pUnit, Event)
local choix_sorts_21501 = math.random(0, 2)
if choix_sorts_21501 == 0 then
pUnit:RegisterEvent('spell0_21501', 1, 1)
end
if choix_sorts_21501 == 1 then
pUnit:RegisterEvent('spell1_21501', 1, 1)
end
if choix_sorts_21501 == 2 then
pUnit:RegisterEvent('spell2_21501', 1, 1)
end
end

function mob21501_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21501', math.random(1500, 3000), 1)
end

function mob21501_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21501_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21501_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21501, 1, 'mob21501_Action')
RegisterUnitEvent(21501, 2, 'mob21501_Leave')
RegisterUnitEvent(21501, 3, 'mob21501_Kill')
RegisterUnitEvent(21501, 4, 'mob21501_Die')
